package com.systemic.mapper;

import com.systemic.pojo.Draft;
import com.systemic.pojo.DynamicImage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: DynamicImageMapper
 * @Description: 动态图片mapper
 * @Author:
 * @CreateTime: 2024-01-05 10:50
 * @Version:
 **/
@Mapper
public interface DynamicImageMapper {

    int insert(DynamicImage dynamicImage);

    int delete(DynamicImage dynamicImage);

    int update(DynamicImage dynamicImage);

    DynamicImage selectById(@Param("id") Integer id);

    DynamicImage selectByDid(@Param("did") Integer did, @Param("status") Integer status);

    List<DynamicImage> selectList(DynamicImage dynamicImage);

    List<DynamicImage> selectListByDid(@Param("did") Integer did, @Param("status") Integer status);

    void deleteById(@Param("id") Integer id);

    int deleteByDidAndStatus(@Param("did") Integer did, @Param("status") Integer status);
}
